/**
 * output package name
 */
package com.kingdee.eas.custom.hr.affair.fluctuation.client;

import java.awt.event.ActionEvent;
import java.math.BigDecimal;
import java.util.Date;

import org.apache.log4j.Logger;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox;
import com.kingdee.bos.ctrl.kdf.table.IRow;
import com.kingdee.bos.ctrl.kdf.table.KDTDefaultCellEditor;
import com.kingdee.bos.ctrl.kdf.table.KDTable;
import com.kingdee.bos.ctrl.kdf.table.util.KDTableUtil;
import com.kingdee.bos.ctrl.swing.event.SelectorEvent;
import com.kingdee.bos.ctrl.swing.event.SelectorListener;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.metadata.entity.FilterInfo;
import com.kingdee.bos.metadata.entity.FilterItemInfo;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.bos.metadata.query.util.CompareType;
import com.kingdee.bos.ui.face.CoreUIObject;
import com.kingdee.bos.ui.face.UIRuleUtil;
import com.kingdee.eas.basedata.org.AdminOrgUnitFactory;
import com.kingdee.eas.basedata.org.AdminOrgUnitInfo;
import com.kingdee.eas.basedata.org.JobInfo;
import com.kingdee.eas.basedata.org.PositionCollection;
import com.kingdee.eas.basedata.org.PositionFactory;
import com.kingdee.eas.common.client.SysContext;
import com.kingdee.eas.custom.common.KDTableUtilEx;
import com.kingdee.eas.custom.hr.affair.fluctuation.OuterFluctuationTypeEnum;
import com.kingdee.eas.framework.client.multiDetail.DetailPanel;
import com.kingdee.eas.framework.client.multiDetail.DetailPanelEvent;
import com.kingdee.eas.hr.base.ApproveTypeEnum;
import com.kingdee.eas.hr.base.client.IHRBillEditUIBiz;
import com.kingdee.eas.hr.canon.cbase.GradeInfo;
import com.kingdee.eas.hr.rec.util.DateUtil;

/**
 * output class name
 */
public class OuterFluctuationOrgChangeEditUI extends
		AbstractOuterFluctuationOrgChangeEditUI {
	private static final Logger logger = CoreUIObject
			.getLogger(OuterFluctuationOrgChangeEditUI.class);

	/**
	 * output class constructor
	 */
	public OuterFluctuationOrgChangeEditUI() throws Exception {
		super();
		this.prmtapplyPerson.setEnabled(false);
		this.prmtAdminOrg.setEnabled(false);
		KDTDefaultCellEditor editor = (KDTDefaultCellEditor) this.kdtEntrys
				.getColumn("targetCostCenter").getEditor();
		KDBizPromptBox kdtEntrys_targetCostCenter_PromptBox = (KDBizPromptBox) editor
				.getComponent();
		kdtEntrys_targetCostCenter_PromptBox
				.setQueryInfo("com.kingdee.eas.custom.hr.affair.fluctuation.app.FluctuationCostCenterQuery");

		kdtEntrys_targetCostCenter_PromptBox
				.addSelectorListener(new SelectorListener() {
					public void willShow(SelectorEvent e) {
						targetCostCenter_willShow(e);
					}
				});

		editor = (KDTDefaultCellEditor) this.kdtEntrys.getColumn("targetGrade")
				.getEditor();
		KDBizPromptBox kdtEntrys_targetGrade_PromptBox = (KDBizPromptBox) editor
				.getComponent();

		kdtEntrys_targetGrade_PromptBox
				.addSelectorListener(new SelectorListener() {
					public void willShow(SelectorEvent e) {
						targetGrade_willShow(e);
					}
				});
	}

	private void targetGrade_willShow(SelectorEvent e) {
		IRow row = KDTableUtil.getSelectedRow(this.kdtEntrys);
		try {
			GradeInfo grade = (GradeInfo) row.getCell("nowGrade").getValue();
			EntityViewInfo view = new EntityViewInfo();

			FilterInfo filter = new FilterInfo();
			if (grade == null) {
			} else {

				BigDecimal level = grade.getLevel();
				filter.getFilterItems().add(new FilterItemInfo("level", level));
			}
			view.setFilter(filter);
			KDBizPromptBox src = (KDBizPromptBox) e.getSource();
			src.setEntityViewInfo(view);
			src.getQueryAgent().resetRuntimeEntityView();
		} catch (Exception ex) {
			this.handleException(ex);
		}
	}

	private void targetCostCenter_willShow(SelectorEvent e) {
		IRow row = KDTableUtil.getSelectedRow(this.kdtEntrys);
		try {
			AdminOrgUnitInfo adminOrg = (AdminOrgUnitInfo) row.getCell(
					"targetAdminOrgUnit").getValue();

			EntityViewInfo view = new EntityViewInfo();

			FilterInfo filter = new FilterInfo();
			if (adminOrg == null) {
				filter.getFilterItems().add(new FilterItemInfo("id", null));
			} else {
				adminOrg = AdminOrgUnitFactory.getRemoteInstance()
						.getAdminOrgUnitInfo(
								new ObjectUuidPK(adminOrg.getId().toString()));

				String longnumber = adminOrg.getLongNumber();
				filter.getFilterItems().add(
						new FilterItemInfo("adminOrgUnit.longnumber",
								longnumber + "%", CompareType.LIKE));
			}
			view.setFilter(filter);
			KDBizPromptBox src = (KDBizPromptBox) e.getSource();
			src.setEntityViewInfo(view);
			src.getQueryAgent().resetRuntimeEntityView();
		} catch (Exception ex) {
			this.handleException(ex);
		}
	}

	/**
	 * output loadFields method
	 */
	public void loadFields() {
		super.loadFields();
	}

	/**
	 * output storeFields method
	 */
	public void storeFields() {
		super.storeFields();
	}

	/**
	 * output btnAddLine_actionPerformed method
	 */
	protected void btnAddLine_actionPerformed(java.awt.event.ActionEvent e)
			throws Exception {
		super.btnAddLine_actionPerformed(e);
	}

	/**
	 * output menuItemEnterToNextRow_itemStateChanged method
	 */
	protected void menuItemEnterToNextRow_itemStateChanged(
			java.awt.event.ItemEvent e) throws Exception {
		super.menuItemEnterToNextRow_itemStateChanged(e);
	}

	/**
	 * output kdtEntrys_editStopped method
	 */
	public void actionPageSetup_actionPerformed(ActionEvent e) throws Exception {
		super.actionPageSetup_actionPerformed(e);

	}

	/**
	 * output actionPageSetup_actionPerformed
	 */
	public void kdtEntrys_editStopped(
			com.kingdee.bos.ctrl.kdf.table.event.KDTEditEvent e)
			throws Exception {
		super.kdtEntrys_editStopped(e);
		int rowIndex = e.getRowIndex();
		int colIndex = e.getColIndex();

		if ("person".equalsIgnoreCase(this.kdtEntrys.getColumnKey(colIndex))) {
			this.kdtEntrys.getCell(rowIndex, "name").setValue(
					UIRuleUtil.getProperty((IObjectValue) kdtEntrys.getCell(
							rowIndex, "person").getValue(), "name"));
			this.kdtEntrys.getCell(rowIndex, "nowAdminOrgUnit").setValue(
					UIRuleUtil.getProperty((IObjectValue) kdtEntrys.getCell(
							rowIndex, "person").getValue(), "dept"));
			this.kdtEntrys.getCell(rowIndex, "nowCostCenter").setValue(
					UIRuleUtil.getProperty((IObjectValue) kdtEntrys.getCell(
							rowIndex, "person").getValue(), "adminOrgBase"));
			this.kdtEntrys.getCell(rowIndex, "nowJob").setValue(
					UIRuleUtil.getProperty((IObjectValue) kdtEntrys.getCell(
							rowIndex, "person").getValue(), "duty"));

			String deptNum = (String) UIRuleUtil.getProperty(
					(IObjectValue) kdtEntrys.getCell(rowIndex, "person")
							.getValue(), "dept.number");
			String jobNum = (String) UIRuleUtil.getProperty(
					(IObjectValue) kdtEntrys.getCell(rowIndex, "person")
							.getValue(), "duty.number");

			String positionNumber = deptNum + jobNum;
			PositionCollection collection = this
					.getPositionCollection(positionNumber);
			if (!collection.isEmpty()) {
				this.kdtEntrys.getCell(rowIndex, "nowPosition").setValue(
						collection.get(0).getName());
			}
		} else if ("targetAdminOrgUnit".equalsIgnoreCase(this.kdtEntrys
				.getColumnKey(colIndex))
				|| "targetJob".equalsIgnoreCase(this.kdtEntrys
						.getColumnKey(colIndex))) {
			this.kdtEntrys.getCell(rowIndex, "targetNewPosition")
					.setValue(null);
			this.kdtEntrys.getCell(rowIndex, "targetPosition").setValue(null);
			AdminOrgUnitInfo adminOrgUnit = (AdminOrgUnitInfo) this.kdtEntrys
					.getCell(rowIndex, "targetAdminOrgUnit").getValue();
			JobInfo job = (JobInfo) this.kdtEntrys.getCell(rowIndex,
					"targetJob").getValue();

			if (adminOrgUnit != null && job != null) {
				String positionNumber = adminOrgUnit.getNumber()
						+ job.getNumber();
				PositionCollection collection = this
						.getPositionCollection(positionNumber);
				if (!collection.isEmpty()) {
					this.kdtEntrys.getCell(rowIndex, "targetPosition")
							.setValue(collection.get(0));
				} else {
					this.kdtEntrys.getCell(rowIndex, "targetNewPosition")
							.setValue(adminOrgUnit.getName() + job.getName());
				}
			}
		}
	}

	public void kdtEntrys_beforeEvent(DetailPanelEvent event) {
		IObjectValue vo = event.getObjectValue();
		vo.put("effectDate", DateUtil.getCurrentDate());
	}

	private PositionCollection getPositionCollection(String positionNumber)
			throws BOSException {
		EntityViewInfo view = new EntityViewInfo();
		FilterInfo filter = new FilterInfo();
		filter.getFilterItems()
				.add(
						new FilterItemInfo("number", positionNumber,
								CompareType.EQUALS));
		view.setFilter(filter);

		PositionCollection collection = PositionFactory.getRemoteInstance()
				.getPositionCollection(view);

		return collection;
	}

	/**
	 * output actionExitCurrent_actionPerformed
	 */
	public void actionExitCurrent_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionExitCurrent_actionPerformed(e);
	}

	/**
	 * output actionHelp_actionPerformed
	 */
	public void actionHelp_actionPerformed(ActionEvent e) throws Exception {
		super.actionHelp_actionPerformed(e);
	}

	/**
	 * output actionAbout_actionPerformed
	 */
	public void actionAbout_actionPerformed(ActionEvent e) throws Exception {
		super.actionAbout_actionPerformed(e);
	}

	/**
	 * output actionOnLoad_actionPerformed
	 */
	public void actionOnLoad_actionPerformed(ActionEvent e) throws Exception {
		super.actionOnLoad_actionPerformed(e);
	}

	/**
	 * output actionSendMessage_actionPerformed
	 */
	public void actionSendMessage_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionSendMessage_actionPerformed(e);
	}

	/**
	 * output actionCalculator_actionPerformed
	 */
	public void actionCalculator_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionCalculator_actionPerformed(e);
	}

	/**
	 * output actionExport_actionPerformed
	 */
	public void actionExport_actionPerformed(ActionEvent e) throws Exception {
		super.actionExport_actionPerformed(e);
	}

	/**
	 * output actionExportSelected_actionPerformed
	 */
	public void actionExportSelected_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionExportSelected_actionPerformed(e);
	}

	/**
	 * output actionRegProduct_actionPerformed
	 */
	public void actionRegProduct_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionRegProduct_actionPerformed(e);
	}

	/**
	 * output actionPersonalSite_actionPerformed
	 */
	public void actionPersonalSite_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionPersonalSite_actionPerformed(e);
	}

	/**
	 * output actionProcductVal_actionPerformed
	 */
	public void actionProcductVal_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionProcductVal_actionPerformed(e);
	}

	/**
	 * output actionExportSave_actionPerformed
	 */
	public void actionExportSave_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionExportSave_actionPerformed(e);
	}

	/**
	 * output actionExportSelectedSave_actionPerformed
	 */
	public void actionExportSelectedSave_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionExportSelectedSave_actionPerformed(e);
	}

	/**
	 * output actionKnowStore_actionPerformed
	 */
	public void actionKnowStore_actionPerformed(ActionEvent e) throws Exception {
		super.actionKnowStore_actionPerformed(e);
	}

	/**
	 * output actionAnswer_actionPerformed
	 */
	public void actionAnswer_actionPerformed(ActionEvent e) throws Exception {
		super.actionAnswer_actionPerformed(e);
	}

	/**
	 * output actionRemoteAssist_actionPerformed
	 */
	public void actionRemoteAssist_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionRemoteAssist_actionPerformed(e);
	}

	/**
	 * output actionPopupCopy_actionPerformed
	 */
	public void actionPopupCopy_actionPerformed(ActionEvent e) throws Exception {
		super.actionPopupCopy_actionPerformed(e);
	}

	/**
	 * output actionHTMLForMail_actionPerformed
	 */
	public void actionHTMLForMail_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionHTMLForMail_actionPerformed(e);
	}

	/**
	 * output actionExcelForMail_actionPerformed
	 */
	public void actionExcelForMail_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionExcelForMail_actionPerformed(e);
	}

	/**
	 * output actionHTMLForRpt_actionPerformed
	 */
	public void actionHTMLForRpt_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionHTMLForRpt_actionPerformed(e);
	}

	/**
	 * output actionExcelForRpt_actionPerformed
	 */
	public void actionExcelForRpt_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionExcelForRpt_actionPerformed(e);
	}

	/**
	 * output actionLinkForRpt_actionPerformed
	 */
	public void actionLinkForRpt_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionLinkForRpt_actionPerformed(e);
	}

	/**
	 * output actionPopupPaste_actionPerformed
	 */
	public void actionPopupPaste_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionPopupPaste_actionPerformed(e);
	}

	/**
	 * output actionSave_actionPerformed
	 */
	public void actionSave_actionPerformed(ActionEvent e) throws Exception {
		if (KDTableUtilEx.checkTableRequired(this.kdtEntrys, 0)) {
			super.actionSave_actionPerformed(e);
		}
	}

	/**
	 * output actionSubmit_actionPerformed
	 */
	public void actionSubmit_actionPerformed(ActionEvent e) throws Exception {
		if (KDTableUtilEx.checkTableRequired(this.kdtEntrys, 0)) {
			super.actionSubmit_actionPerformed(e);
		}
	}

	/**
	 * output actionCancel_actionPerformed
	 */
	public void actionCancel_actionPerformed(ActionEvent e) throws Exception {
		super.actionCancel_actionPerformed(e);
	}

	/**
	 * output actionCancelCancel_actionPerformed
	 */
	public void actionCancelCancel_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionCancelCancel_actionPerformed(e);
	}

	/**
	 * output actionFirst_actionPerformed
	 */
	public void actionFirst_actionPerformed(ActionEvent e) throws Exception {
		super.actionFirst_actionPerformed(e);
	}

	/**
	 * output actionPre_actionPerformed
	 */
	public void actionPre_actionPerformed(ActionEvent e) throws Exception {
		super.actionPre_actionPerformed(e);
	}

	/**
	 * output actionNext_actionPerformed
	 */
	public void actionNext_actionPerformed(ActionEvent e) throws Exception {
		super.actionNext_actionPerformed(e);
	}

	/**
	 * output actionLast_actionPerformed
	 */
	public void actionLast_actionPerformed(ActionEvent e) throws Exception {
		super.actionLast_actionPerformed(e);
	}

	/**
	 * output actionPrint_actionPerformed
	 */
	public void actionPrint_actionPerformed(ActionEvent e) throws Exception {
		super.actionPrint_actionPerformed(e);
	}

	/**
	 * output actionPrintPreview_actionPerformed
	 */
	public void actionPrintPreview_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionPrintPreview_actionPerformed(e);
	}

	/**
	 * output actionCopy_actionPerformed
	 */
	public void actionCopy_actionPerformed(ActionEvent e) throws Exception {
		super.actionCopy_actionPerformed(e);
	}

	/**
	 * output actionAddNew_actionPerformed
	 */
	public void actionAddNew_actionPerformed(ActionEvent e) throws Exception {
		super.actionAddNew_actionPerformed(e);
	}

	/**
	 * output actionEdit_actionPerformed
	 */
	public void actionEdit_actionPerformed(ActionEvent e) throws Exception {
		super.actionEdit_actionPerformed(e);
	}

	/**
	 * output actionRemove_actionPerformed
	 */
	public void actionRemove_actionPerformed(ActionEvent e) throws Exception {
		super.actionRemove_actionPerformed(e);
	}

	/**
	 * output actionAttachment_actionPerformed
	 */
	public void actionAttachment_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionAttachment_actionPerformed(e);
	}

	/**
	 * output actionSubmitOption_actionPerformed
	 */
	public void actionSubmitOption_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionSubmitOption_actionPerformed(e);
	}

	/**
	 * output actionReset_actionPerformed
	 */
	public void actionReset_actionPerformed(ActionEvent e) throws Exception {
		super.actionReset_actionPerformed(e);
	}

	/**
	 * output actionMsgFormat_actionPerformed
	 */
	public void actionMsgFormat_actionPerformed(ActionEvent e) throws Exception {
		super.actionMsgFormat_actionPerformed(e);
	}

	/**
	 * output actionAddLine_actionPerformed
	 */
	public void actionAddLine_actionPerformed(ActionEvent e) throws Exception {
		super.actionAddLine_actionPerformed(e);
	}

	/**
	 * output actionCopyLine_actionPerformed
	 */
	public void actionCopyLine_actionPerformed(ActionEvent e) throws Exception {
		super.actionCopyLine_actionPerformed(e);
	}

	/**
	 * output actionInsertLine_actionPerformed
	 */
	public void actionInsertLine_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionInsertLine_actionPerformed(e);
	}

	/**
	 * output actionRemoveLine_actionPerformed
	 */
	public void actionRemoveLine_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionRemoveLine_actionPerformed(e);
	}

	/**
	 * output actionCreateFrom_actionPerformed
	 */
	public void actionCreateFrom_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionCreateFrom_actionPerformed(e);
	}

	/**
	 * output actionCopyFrom_actionPerformed
	 */
	public void actionCopyFrom_actionPerformed(ActionEvent e) throws Exception {
		super.actionCopyFrom_actionPerformed(e);
	}

	/**
	 * output actionAuditResult_actionPerformed
	 */
	public void actionAuditResult_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionAuditResult_actionPerformed(e);
	}

	/**
	 * output actionTraceUp_actionPerformed
	 */
	public void actionTraceUp_actionPerformed(ActionEvent e) throws Exception {
		super.actionTraceUp_actionPerformed(e);
	}

	/**
	 * output actionTraceDown_actionPerformed
	 */
	public void actionTraceDown_actionPerformed(ActionEvent e) throws Exception {
		super.actionTraceDown_actionPerformed(e);
	}

	/**
	 * output actionViewSubmitProccess_actionPerformed
	 */
	public void actionViewSubmitProccess_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionViewSubmitProccess_actionPerformed(e);
	}

	/**
	 * output actionViewDoProccess_actionPerformed
	 */
	public void actionViewDoProccess_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionViewDoProccess_actionPerformed(e);
	}

	/**
	 * output actionMultiapprove_actionPerformed
	 */
	public void actionMultiapprove_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionMultiapprove_actionPerformed(e);
	}

	/**
	 * output actionNextPerson_actionPerformed
	 */
	public void actionNextPerson_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionNextPerson_actionPerformed(e);
	}

	/**
	 * output actionStartWorkFlow_actionPerformed
	 */
	public void actionStartWorkFlow_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionStartWorkFlow_actionPerformed(e);
	}

	/**
	 * output actionVoucher_actionPerformed
	 */
	public void actionVoucher_actionPerformed(ActionEvent e) throws Exception {
		super.actionVoucher_actionPerformed(e);
	}

	/**
	 * output actionDelVoucher_actionPerformed
	 */
	public void actionDelVoucher_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionDelVoucher_actionPerformed(e);
	}

	/**
	 * output actionWorkFlowG_actionPerformed
	 */
	public void actionWorkFlowG_actionPerformed(ActionEvent e) throws Exception {
		super.actionWorkFlowG_actionPerformed(e);
	}

	/**
	 * output actionCreateTo_actionPerformed
	 */
	public void actionCreateTo_actionPerformed(ActionEvent e) throws Exception {
		super.actionCreateTo_actionPerformed(e);
	}

	/**
	 * output actionSendingMessage_actionPerformed
	 */
	public void actionSendingMessage_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionSendingMessage_actionPerformed(e);
	}

	/**
	 * output actionSignature_actionPerformed
	 */
	public void actionSignature_actionPerformed(ActionEvent e) throws Exception {
		super.actionSignature_actionPerformed(e);
	}

	/**
	 * output actionWorkflowList_actionPerformed
	 */
	public void actionWorkflowList_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionWorkflowList_actionPerformed(e);
	}

	/**
	 * output actionViewSignature_actionPerformed
	 */
	public void actionViewSignature_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionViewSignature_actionPerformed(e);
	}

	/**
	 * output actionSendMail_actionPerformed
	 */
	public void actionSendMail_actionPerformed(ActionEvent e) throws Exception {
		super.actionSendMail_actionPerformed(e);
	}

	/**
	 * output actionLocate_actionPerformed
	 */
	public void actionLocate_actionPerformed(ActionEvent e) throws Exception {
		super.actionLocate_actionPerformed(e);
	}

	/**
	 * output actionFieldMapping_actionPerformed
	 */
	public void actionFieldMapping_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionFieldMapping_actionPerformed(e);
	}

	/**
	 * output actionAudit_actionPerformed
	 */
	public void actionAudit_actionPerformed(ActionEvent e) throws Exception {
		super.actionAudit_actionPerformed(e);
	}

	/**
	 * output actionUnaudit_actionPerformed
	 */
	public void actionUnaudit_actionPerformed(ActionEvent e) throws Exception {
		super.actionUnaudit_actionPerformed(e);
	}

	/**
	 * output actionColumnCopyAll_actionPerformed
	 */
	public void actionColumnCopyAll_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionColumnCopyAll_actionPerformed(e);
	}

	/**
	 * output actionColumnCopySelect_actionPerformed
	 */
	public void actionColumnCopySelect_actionPerformed(ActionEvent e)
			throws Exception {
		super.actionColumnCopySelect_actionPerformed(e);
	}

	/**
	 * output getBizInterface method
	 */
	protected com.kingdee.eas.framework.ICoreBase getBizInterface()
			throws Exception {
		return com.kingdee.eas.custom.hr.affair.fluctuation.OuterFluctuationOrgChangeFactory
				.getRemoteInstance();
	}

	/**
	 * output createNewDetailData method
	 */
	protected IObjectValue createNewDetailData(KDTable table) {

		return null;
	}

	/**
	 * output createNewData method
	 */
	protected com.kingdee.bos.dao.IObjectValue createNewData() {
		com.kingdee.eas.custom.hr.affair.fluctuation.OuterFluctuationOrgChangeInfo objectValue = new com.kingdee.eas.custom.hr.affair.fluctuation.OuterFluctuationOrgChangeInfo();
		objectValue
				.setCreator((com.kingdee.eas.base.permission.UserInfo) (com.kingdee.eas.common.client.SysContext
						.getSysContext().getCurrentUser()));
		objectValue.setApplyDate(new Date());
		objectValue.setApplyPerson(SysContext.getSysContext()
				.getCurrentUserInfo().getPerson());
		objectValue.setFluctuationType(OuterFluctuationTypeEnum.WORKSHOP_IN);

		return objectValue;
	}

	@Override
	protected IHRBillEditUIBiz getBillBiz() {
		return new OuterFluctuationOrgChangeEditUIBiz();
	}

	@Override
	protected DetailPanel getIgnoredDetailPanel() {
		return this.kdtEntrys_detailPanel;
	}

	@Override
	public SelectorItemCollection getSelectors() {
		SelectorItemCollection selectors = super.getSelectors();
		selectors.add("*");
		selectors.add("applyPerson.*");
		selectors.add("adminOrg.*");
		return selectors;
	}

	@Override
	public void onLoad() throws Exception {
		super.onLoad();
		this.cbApproveType.setSelectedItem(ApproveTypeEnum.WORKFLOW);
	}

}